<?php

if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'SmartL_DataBinder_DataAdapter_AllTests::main');
}
require_once dirname(dirname(dirname(dirname(__FILE__)))).DIRECTORY_SEPARATOR."TestHelper.php";
require_once 'SmartL/DataBinder/DataAdapter/ArrayTest.php';
require_once 'SmartL/DataBinder/DataAdapter/ObjectTest.php';
require_once 'SmartL/DataBinder/DataAdapter/DoctrineTest.php';
require_once 'SmartL/DataBinder/DataAdapter/ZendFormTest.php';

class SmartL_DataBinder_DataAdapter_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Smart Library - SmartL_DataBinder_DataAdapter');

        $suite->addTestSuite('SmartL_DataBinder_Adapter_ArrayTest');
        $suite->addTestSuite('SmartL_DataBinder_Adapter_DoctrineTest');
        $suite->addTestSuite('SmartL_DataBinder_Adapter_ObjectTest');
        $suite->addTestSuite('SmartL_DataBinder_Adapter_ZendFormTest');
        return $suite;
    }
}

if (PHPUnit_MAIN_METHOD == 'SmartL_DataBinder_DataAdapter_AllTests::main') {
    SmartL_DataBinder_DataAdapter_AllTests::main();
}